package com.kx.smartdevice.service.impl;

import com.kx.smartdevice.mapper.MenuMapper;
import com.kx.smartdevice.pojo.Menu;
import com.kx.smartdevice.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName UserServiceImpl
 * @Author Sun
 * @Date 2021/5/26 10:17
 */
@Service
@Transactional
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> getAllMenus() {
        List<Menu> menuList = menuMapper.getMenus();
        return menuList;
    }
}
